
package com.yxw.yx_hotel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.yx_hotel.dto.QueryRoomManageDto;
import com.yxw.yx_hotel.dto.QueryRoomStatisticsDto;
import com.yxw.yx_hotel.entity.YxRoomBedEntity;
import com.yxw.yx_hotel.entity.YxRoomEntity;
import com.yxw.yx_hotel.vo.RoomBedVo;
import com.yxw.yx_hotel.vo.RoomManageVo;
import com.yxw.yx_hotel.vo.RoomStatisticsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  宿舍床位管理
 * @author liuxin
 * @date 2024.01.16
 */
@Repository
public interface RoomBedMapper extends BaseMapper<YxRoomBedEntity> {

    /**
     * 批量新增宿舍床位
     * @param list
     */
    void addRoomBedByBatch(@Param("list") List<YxRoomBedEntity> list);

    /**
     * 批量修改宿舍床位
     * @param list
     */
    void updateRoomBedByBatch(@Param("list")  List<YxRoomBedEntity> list);

    /**
     * 查询床位信息
     * @param roomId
     * @return
     */
    List<RoomBedVo> getRoomBedByRoomId(Long roomId);

}
